package cn.zxy.exception;


public class BizException extends RuntimeException{
//运行时异常

    private int code;
    //throw new BizException(409,"姓名为空，手机号已经存在")
    public BizException(int code,String msg){
        super(msg);
        this.code=code;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }



}
